Fix a leak by not increasing the refcount of the GtkRecentInfo object when
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 18 Apr 2007 14:37:49 +0000 (14:37 +0000)
committerEmmanuele Bassi <ebassi@src.gnome.org>
Wed, 18 Apr 2007 14:37:49 +0000 (14:37 +0000)
2007-04-18  Emmanuele Bassi  <ebassi@gnome.org>

* gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix
a leak by not increasing the refcount of the GtkRecentInfo
object when returning it (thanks to Matthias Clasen).

svn path=/trunk/; revision=17606

ChangeLog
gtk/gtkrecentmanager.c

index a7385ee1550ca0a1dfdb0b243949bf32318a6c95..dd038356fc8a096361721eb95f2fa338c1900c34 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-04-18  Emmanuele Bassi  <ebassi@gnome.org>
+
+       * gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix
+       a leak by not increasing the refcount of the GtkRecentInfo
+       object when returning it (thanks to Matthias Clasen).
+
 2007-04-16  Alexander Larsson  <alexl@redhat.com>
 
        * gtk/gtkprintoperation.c (gtk_print_operation_run):
index cc52a02ed6fdc0062157424d0291d982c2c89e55..05104737d09c22b68e2d8a1147104af057c51848 100644 (file)
@@ -1231,7 +1231,7 @@ gtk_recent_manager_lookup_item (GtkRecentManager  *manager,
       return NULL;
     }
  
-  return gtk_recent_info_ref (info);
+  return info;
 }
 
 /**